<div id="content">
    <div id="deal-buy" class="box">
        <div class="box-top"></div>
        <div class="box-content">
            <div class="sect">

				<?php $form=$this->beginWidget('CActiveForm', array(
						'id'=>'order-form',
						'enableAjaxValidation'=>false,
					)); ?>
					   	<?php echo $form->errorSummary($model); ?>
						<div class="field">
							<?php echo $form->labelEx($model,'项目名称',array('for'=>"quantity")); ?>
							<?php echo $result['title'];?>
							<?php echo $form->error($model,'title'); ?>
						</div>

  						<div class="field">
							<?php echo $form->labelEx($model,'price'); ?>
							<?php echo $result['team_price'];?>
							<?php echo $form->error($model,'price'); ?>
						</div>

						<div class="field">
							<?php echo $form->labelEx($model,'fare'); ?>
							<?php echo $result['fare'];?>
							<?php echo $form->error($model,'fare'); ?>
						</div>


						<div class="field quantity">
							<?php echo $form->labelEx($model,'quantity',array('for'=>"quantity")); ?>
							<?php echo $form->textField($model,'quantity',array('size'=>3,'maxlength'=>3,'id'=>"quantity",'class'=>"number")); ?>
							<?php echo $form->error($model,'quantity'); ?>
							<span class="inputtip">最多<?php echo  $result['per_number'] ?>件</span>
						</div>

 						<div class="field mobile">
							<?php echo $form->labelEx($model,'mobile',array('for'=>"mobile")); ?>
							<?php echo $form->textField($model,'mobile',array('size'=>11,'maxlength'=>11,'id'=>"mobile",'class'=>"number")); ?>
							<?php echo $form->error($model,'mobile'); ?>
							<span class="inputtip">手机号码是我们联系您的最重要方式</span>
						</div>

						<div class="field realname">
							<?php echo $form->labelEx($model,'realname',array('for'=>"realname")); ?>
							<?php echo $form->textField($model,'realname',array('size'=>11,'maxlength'=>20,'id'=>"realname",'class'=>"f-input")); ?>
							<?php echo $form->error($model,'realname'); ?>
						</div>
						<div class="field zipcode">
							<?php echo $form->labelEx($model,'zipcode',array('for'=>"zipcode")); ?>
							<?php echo $form->textField($model,'zipcode',array('size'=>11,'maxlength'=>6,'id'=>"zipcode",'class'=>"number")); ?>
							<?php echo $form->error($model,'zipcode'); ?>
						</div>

						<div class="field address">
							<?php echo $form->labelEx($model,'address',array('for'=>"address")); ?>
							<?php echo $form->textField($model,'address',array('size'=>40,'maxlength'=>128,'id'=>"address",'class'=>"f-input")); ?>
							<?php echo $form->error($model,'address'); ?>
						</div>


						<div class="field remark">
							<?php echo $form->labelEx($model,'remark',array('for'=>"remark")); ?>
							<?php echo $form->textArea($model,'remark',array('rows'=>6, 'cols'=>50,'id'=>"remark",'class'=>"f-input")); ?>
							<?php echo $form->error($model,'remark'); ?>
						</div>
						<div class="field">
							<?php echo $form->labelEx($model,'账户余额'); ?>
							<?php echo $result['usermoney'];?>
							<?php echo $form->error($model,'money'); ?>
						</div>
						<div class="act">
							<?php echo CHtml::submitButton($model->isNewRecord ? '确认无误，购买' : 'Save',array('id'=>"submit",'class'=>"formbutton")); ?>
						</div>
				<?php $this->endWidget(); ?>

			</div>
		</div>
		<div class="box-bottom"></div>
	</div>
</div>
